/*--------------------------------------------------------------------------------
	DESCRIPTION: Code to construct all final tables and charts

--------------------------------------------------------------------------------*/

global main_dir 	"..." //insert relevant directory of user
global data_dir		"$main_dir/data"
global code_dir		"$main_dir/code"

cap erase "$main_dir/output"
cap mkdir "$main_dir/output"
cap mkdir "$main_dir/output/tables"
cap mkdir "$main_dir/output/figures"

foreach x in tables figures {
	cap mkdir "$main_dir/output/`x'/main"
}

//--------------------------------------------------------
//MAIN TABLES
//--------------------------------------------------------

*TABLE 1
do "$code_dir/tables/main/table_1.do"

*TABLE 2
do "$code_dir/tables/main/table_2.do"

*TABLE 3
do "$code_dir/tables/main/table_3.do"

*TABLE 4
do "$code_dir/tables/main/table_4.do"

*TABLE 5
do "$code_dir/tables/main/table_5.do"

*TABLE 6
do "$code_dir/tables/main/table_6.do"

*TABLE 7
do "$code_dir/tables/main/table_7.do"

*TABLE 8
do "$code_dir/tables/main/table_8.do"

*TABLE 9
do "$code_dir/tables/main/table_9.do"

*TABLE 10
do "$code_dir/tables/main/table_10.do"


//--------------------------------------------------------
//MAIN FIGURES
//--------------------------------------------------------

*FIGURE 1
do "$code_dir/figures/main/figure_1.do"

*FIGURE 2
do "$code_dir/figures/main/figure_2.do"

*FIGURE 3
do "$code_dir/figures/main/figure_3.do"

*FIGURE 4
do "$code_dir/figures/main/figure_4.do"

*FIGURE 5
do "$code_dir/figures/main/figure_5.do"

*FIGURE 6
do "$code_dir/figures/main/figure_6.do"

*FIGURE 7
*must run "figure_7.R" in R

*FIGURE 8
do "$code_dir/figures/main/figure_8.do"

*FIGURE 9
do "$code_dir/figures/main/figure_9.do"

